﻿@{
    ViewBag.Title = "";
}

<script src="~/Content/js/jquery.min.js" type="text/javascript"></script>
<script>
    $(function () {

        $("#lmn").click(function () {
            $(".fff").show();
            $("#detailContentLeft").hide();
        })

        $("#lmmn").click(function () {
            $(".fff").hide();
            $("#detailContentLeft").show();
        })
    })
</script>


<div id="main">
    @*课程分布视图*@
    @Html.Partial("Front-Partial1")


    <div id="detailContent">
        <div class="detailContentLeft-tags">
            <a href="/Home/ClassHour/@ViewBag.course.CoursesId">
                <div id="videoSelect" class="detailContentLeft-video-tag">视频教程</div>
            </a>
            <a href="/Home/question">
                <div id="questionSelect" class="detailContentLeft-video-tag">互动问答</div>
            </a>
            <a href="/Home/download">
                <div id="detail-resource-tab" class="detailContentLeft-video-tag">资源下载</div>
            </a>
            <a href="/Home/ShowNotes">
                <div id="detail-resource-tab" class="detailContentLeft-video-tagSelect">笔记</div>
            </a>
            <a href="/Home/Estimat">
                <div id="estimate" class="detailContentLeft-video-tag">评价</div>
            </a>
            <a href="/Home/topics">
                <div id="estimate" class="detailContentLeft-video-tag">话题</div>
            </a>
        </div>

        <!--呈现某个系列课程的具体内容页面-->
        <div id="detailContentLeft-video-list">

            <div id="detailContentLeft">

                @foreach (var item in ViewBag.k as List<LeEdu.MODEL.Note>)
                {

                    <div>
                        <div style="width: 84%;float:left">
                            <div class="outLinkLineLevel2 outlineItemTry notice15 outlineItemOdd">
                                <div>@item.NoteContent</div>
                                <div>
                                    @item.UserInfo.Uname &nbsp;&nbsp;
                                    @if (Convert.ToInt32((DateTime.Now - item.NoteTime).Days) >= 1)
                                    {
                                        @Convert.ToInt32((DateTime.Now - item.NoteTime).Days);<span>天前</span>
                                    }
                                    else
                                    {
                                        if (Convert.ToInt32((DateTime.Now - item.NoteTime).Hours) > 0)
                                        {
                                            @Convert.ToInt32((DateTime.Now - item.NoteTime).Hours);<span>小时前</span>
                                        }
                                        else
                                        {
                                            if (Convert.ToInt32((DateTime.Now - item.NoteTime).Minutes) < 60)
                                            {
                                                @Convert.ToInt32((DateTime.Now - item.NoteTime).Minutes);<span>分钟前</span>
                                            }
                                        }

                                    }

                                </div>
                            </div>

                        </div>
                        <div style="float:right;width:16%" class="outLinkLineLevel2 outlineItemTry notice15 outlineItemOdd"><a href="/Home/DzNotes?id=@item.ID">&nbsp;&nbsp;点&nbsp;赞（@item.Like）&nbsp;&nbsp;</a></div>

                    </div>
                }
                <div class="outlineLevel1 title16 enabled">
                    <div style="float:right;margin-top:20px" > <a href="#" id="lmn" class="btn btn-success">查看全部</a></div>
                </div>
            </div>

            <div id="detailContentLeft" hidden="hidden" class="fff">
               
                @foreach (var item in ViewBag.fk as List<LeEdu.MODEL.Note>)
                {
                    <div>
                    <div style="width: 84%;float:left">
                        <div class="outLinkLineLevel2 outlineItemTry notice15 outlineItemOdd">
                            <div>@item.NoteContent</div>
                            <div>
                                @item.UserInfo.Uname &nbsp;&nbsp;
                                @if (Convert.ToInt32((DateTime.Now - item.NoteTime).Days) >= 1)
                                {
                                    @Convert.ToInt32((DateTime.Now - item.NoteTime).Days);<span>天前</span>
                                }
                                else
                                {
                                    if (Convert.ToInt32((DateTime.Now - item.NoteTime).Hours) > 0)
                                    {
                                        @Convert.ToInt32((DateTime.Now - item.NoteTime).Hours);<span>小时前</span>
                                    }
                                    else
                                    {
                                        if (Convert.ToInt32((DateTime.Now - item.NoteTime).Minutes) < 60)
                                        {
                                            @Convert.ToInt32((DateTime.Now - item.NoteTime).Minutes);<span>分钟前</span>
                                        }
                                    }

                                }

                            </div>
                        </div>

                    </div>
                    <div style="float:right;width:16%" class="outLinkLineLevel2 outlineItemTry notice15 outlineItemOdd"><a href="/Home/DzNotes?id=@item.ID">&nbsp;&nbsp;点&nbsp;赞（@item.Like）&nbsp;&nbsp;</a></div>

                </div>
                }
                <div class="outlineLevel1 title16 enabled">
                    <div style="float:right;margin-top:20px">
                        <a href="#" id="lmmn" class=" btn btn-success">返回</a>
                    </div>
                </div>
            </div>

            @*讲师介绍局部视图*@
            @Html.Partial("Fronr-Partial2")
            <div class="clearBoth"></div>
        </div>
        <div id="scourse-forbid-dialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
            <div class="modalTitleContent">
                <div class="modalTitle">提示</div>
                <div class="modalCloseButton"></div>
                <div class="clearBoth"></div>
            </div>
            <div id="scourse-forbid-content">
                <div class="notice16" id="scourse-forbid-title">
                    你尚未购买本课程，请购买后观看
                </div>
                <div class="mbtn bluebtn" id="scourse-forbid-button">知道了</div>
            </div>
        </div>
    </div>
    <input type="hidden" value="40" id="courseID">
</div>
